<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>


<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Personal Particulars</title>
<link href="<?php echo css_link('substyle.css','client','css');?>" rel="stylesheet" type="text/css">
</head><body>
<?php $this->load->view('layout/logo');?>
<div id="wrap">
  <form id="form1" name="form1" method="post" action="">
    <table border="0" cellpadding="7" cellspacing="0">
      <tbody>
      <tr>
        <td align="right"><strong>Username:</strong></td>
        <td colspan="2">
        	<input disabled="disabled" name="username" value="<?php echo $_SESSION['_user']['username'];?>" class="field" id="fullname" size="40" type="text">
        	
        </td>
      </tr>
      <tr>
        <td align="right"><strong>Old Password:</strong></td>
        <td colspan="2">
        	<input name="o_password" value="" class="field" id="fullname" size="40" type="password">
        	<?php 
        	echo form_error('o_password');
        	?>
        </td>
      </tr>
      <tr>
        <td align="right"><strong>New Password:</strong></td>
        <td colspan="2">
        	<input name="new_password" value="" class="field" id="fullname" size="40" type="password">
        	<?php 
        	echo form_error('new_password');
        	?>
        </td>
      </tr>
      <tr>
        <td align="right"><strong>Confirm password:</strong></td>
        <td colspan="2">
        	<input name="c_password" value="" class="field" id="fullname" size="40" type="password">
        	<?php 
        	echo form_error('cpassword');
        	?>
        </td>
      </tr>
      <tr>
        <td align="right"><strong>Email:</strong></td>
        <td colspan="2">
        	<input name="email" value="<?php echo $_SESSION['_user']['email'];?>" class="field" id="passport" size="40" type="text">
        	<?php 
        	echo form_error('email');
        	?>
        </td>
      </tr>
      
      <tr>
        <td align="right"><strong>Group:</strong></td>
        <td colspan="2">
	        <?php echo($_SESSION['_user']['group_id']==1 ? 'Admin' : 'Agent');?>
        </td>
      </tr>
      <tr>
        <td align="right">&nbsp;</td>
        <td colspan="2"><button class="large button red"	>Submit</button></td>
      </tr>
      <tr>
        <td align="left"><a href="javascript:window.close();"><img src="<?php echo img_link('cwindow.jpg');?>" alt="Close Window" height="15" width="82" border="0"></a></td>
        <td colspan="2">&nbsp;</td>
      </tr>
    </tbody></table>
    
   
    
  </form>
  
  
</div>
</body></html>